package com.xy.p2p.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Tfinanceinfo entity. @author MyEclipse Persistence Tools
 */

public class Tfinanceinfo implements java.io.Serializable,Comparable<Tfinanceinfo> {

	// Fields

	private Long fiid;
	private Tmember Tmember;
	private String financekey;
	private String financeuse;
	private Double financeamount;
	private Integer financeallotedtime;
	private Double financepa;
	private Integer repaymentperiod;
	private Integer repaymentmod;
	private Date financelimit;
	private String financedescription;
	private Integer status;
	private Date itfdate;
	private Date nrdate;
	private Double plsf;
	private Double mfrl;
	private Double subpri;
	private Double alino;
	private Double mftba;
	private Integer targettype;
	private String remark;
	private Double rewardrate;
	private Date applicationdate;
	private Set Ttenderrecords = new HashSet(0);
	private Set Tfinanceaudits = new HashSet(0);
	private Set Tfileaveamessages = new HashSet(0);
	
	private double totaltendermoney;

	// Constructors

	/** default constructor */
	public Tfinanceinfo() {
	}

	/** full constructor */
	public Tfinanceinfo(Tmember Tmember, String financekey, String financeuse, Double financeamount, Integer financeallotedtime, Double financepa, Integer repaymentperiod, Integer repaymentmod,
			Date financelimit, String financedescription, Integer status, Date itfdate, Date nrdate, Double plsf, Double mfrl, Double subpri, Double alino, Double mftba,Integer targettype,String remark,Date applicationdate,
			Set Ttenderrecords,Set Tfinanceaudits,Set Tfileaveamessages) {
		this.Tmember = Tmember;
		this.financekey = financekey;
		this.financeuse = financeuse;
		this.financeamount = financeamount;
		this.financeallotedtime = financeallotedtime;
		this.financepa = financepa;
		this.repaymentperiod = repaymentperiod;
		this.repaymentmod = repaymentmod;
		this.financelimit = financelimit;
		this.financedescription = financedescription;
		this.status = status;
		this.itfdate = itfdate;
		this.nrdate = nrdate;
		this.plsf = plsf;
		this.mfrl = mfrl;
		this.subpri = subpri;
		this.alino = alino;
		this.mftba = mftba;
		this.targettype = targettype;
		this.remark = remark;
		this.applicationdate = applicationdate;
		this.Ttenderrecords = Ttenderrecords;
		this.Tfinanceaudits=Tfinanceaudits;
		this.Tfileaveamessages=Tfileaveamessages;
	}

	// Property accessors

	public Long getFiid() {
		return this.fiid;
	}

	public void setFiid(Long fiid) {
		this.fiid = fiid;
	}

	public Tmember getTmember() {
		return this.Tmember;
	}

	public void setTmember(Tmember Tmember) {
		this.Tmember = Tmember;
	}

	public String getFinancekey() {
		return this.financekey;
	}

	public void setFinancekey(String financekey) {
		this.financekey = financekey;
	}

	public String getFinanceuse() {
		return this.financeuse;
	}

	public void setFinanceuse(String financeuse) {
		this.financeuse = financeuse;
	}

	public Double getFinanceamount() {
		return this.financeamount;
	}

	public void setFinanceamount(Double financeamount) {
		this.financeamount = financeamount;
	}

	public Integer getFinanceallotedtime() {
		return this.financeallotedtime;
	}

	public void setFinanceallotedtime(Integer financeallotedtime) {
		this.financeallotedtime = financeallotedtime;
	}

	public Double getFinancepa() {
		return this.financepa;
	}

	public void setFinancepa(Double financepa) {
		this.financepa = financepa;
	}

	public Integer getRepaymentperiod() {
		return this.repaymentperiod;
	}

	public void setRepaymentperiod(Integer repaymentperiod) {
		this.repaymentperiod = repaymentperiod;
	}

	public Integer getRepaymentmod() {
		return this.repaymentmod;
	}

	public void setRepaymentmod(Integer repaymentmod) {
		this.repaymentmod = repaymentmod;
	}

	public Date getFinancelimit() {
		return this.financelimit;
	}

	public void setFinancelimit(Date financelimit) {
		this.financelimit = financelimit;
	}

	public String getFinancedescription() {
		return this.financedescription;
	}

	public void setFinancedescription(String financedescription) {
		this.financedescription = financedescription;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getItfdate() {
		return this.itfdate;
	}

	public void setItfdate(Date itfdate) {
		this.itfdate = itfdate;
	}

	public Date getNrdate() {
		return this.nrdate;
	}

	public void setNrdate(Date nrdate) {
		this.nrdate = nrdate;
	}

	public Double getPlsf() {
		return this.plsf;
	}

	public void setPlsf(Double plsf) {
		this.plsf = plsf;
	}

	public Double getMfrl() {
		return this.mfrl;
	}

	public void setMfrl(Double mfrl) {
		this.mfrl = mfrl;
	}

	public Double getSubpri() {
		return this.subpri;
	}

	public void setSubpri(Double subpri) {
		this.subpri = subpri;
	}

	public Double getAlino() {
		return this.alino;
	}

	public void setAlino(Double alino) {
		this.alino = alino;
	}

	public Double getMftba() {
		return this.mftba;
	}

	public void setMftba(Double mftba) {
		this.mftba = mftba;
	}

	public Set getTtenderrecords() {
		return this.Ttenderrecords;
	}

	public void setTtenderrecords(Set Ttenderrecords) {
		this.Ttenderrecords = Ttenderrecords;
	}

	public double getTotaltendermoney() {
		return totaltendermoney;
	}

	public void setTotaltendermoney(double totaltendermoney) {
		this.totaltendermoney = totaltendermoney;
	}

	public Integer getTargettype() {
		return targettype;
	}

	public void setTargettype(Integer targettype) {
		this.targettype = targettype;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getApplicationdate() {
		return applicationdate;
	}

	public void setApplicationdate(Date applicationdate) {
		this.applicationdate = applicationdate;
	}

	public Set getTfinanceaudits() {
		return Tfinanceaudits;
	}

	public void setTfinanceaudits(Set tfinanceaudits) {
		Tfinanceaudits = tfinanceaudits;
	}

	public Set getTfileaveamessages() {
		return Tfileaveamessages;
	}

	public void setTfileaveamessages(Set tfileaveamessages) {
		Tfileaveamessages = tfileaveamessages;
	}

	@Override
	public int compareTo(Tfinanceinfo o) {
		return (int) (o.getApplicationdate().getTime()-this.getApplicationdate().getTime());
	}

	public Double getRewardrate() {
		return rewardrate;
	}

	public void setRewardrate(Double rewardrate) {
		this.rewardrate = rewardrate;
	}
	
}